package com.scm.service;

import java.sql.*;
import java.util.*;

import com.scm.dao.PomainDao;
import com.scm.model.Pomain;
import com.scm.page.Page;
import com.scm.util.DbUtil;
import com.scm.util.PageUtil;

/**
 * 采购单事务管理
 * @author Surrik_Zhang
 */
public class PomainService {
	public Page<Pomain> selectPage(int currentPage,Map<String, String> queryMap) throws SQLException{
		Connection conn = null;
		try{
			conn = DbUtil.getConn();
			PomainDao dao = new PomainDao(conn);
			return PageUtil.selectPage(dao, currentPage, queryMap);
		}finally{
			DbUtil.close(conn, null, null);
		}
	}
}
